import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import { CompanyListComponent } from './company-list/company-list.component';
import { CompanyDetailComponent } from './company-detail/company-detail.component';
import { CompanyIntegralListComponent } from './integral-list/integral-list.component';
import { CompanyAddComponent } from './company-add/company-add.component';
import { CompanySortComponent } from './company-sort/company-sort.component';
import { CompanyTypeListComponent } from './company-type-list/company-type-list.component';

const routes: Routes = [
  { path: 'list', component: CompanyListComponent },
  { path: 'list/detail', component: CompanyDetailComponent },
  { path: 'list/add', component: CompanyAddComponent },
  { path: 'integral-list', component: CompanyIntegralListComponent },
  { path: 'company-sort', component: CompanySortComponent },
  { path: 'company-type-list', component: CompanyTypeListComponent }];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class CompanyRoutingModule { }
